<%@ page language="java" import="java.util.*,com.system.core.*" pageEncoding="UTF-8"%>
   <%
		System.out.println("开始接受flex登录请求.....");
    	String username= request.getParameter("username");
    	String password = request.getParameter("password");
    	if(null==username||"".equals(username)){out.println("用户名不能为空!");out.close();return;}
    	System.out.println("用户名："+username+"  密码:"+password);
    	
    	Map users = (Map)this.getServletContext().getAttribute("users");
    	if(null!=users){
    		if(!users.containsKey(username)){
    			out.println("用户名不存在 ！");
    		}else{
    			if(users.get(username).equals(password)){
    				out.println("登录成功! 登录时间："+TimeUtil.getStandardTime());
    			}else{
    				out.println("密码错误 请重试！");
    			}
    		}
    		
    	}else{
    		out.println("用户名不存在！请核对后重试！");
    	}
    	
    	
    %>
